﻿<UserControl x:Class="CPPEI.Coolzon.Theme.Default.MainViewControl.SceneNavigation"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="40" d:DesignWidth="1024">
    <Grid>
        <Grid.Background>
            <ImageBrush ImageSource="/CPPEI.Coolzon.Theme.Default;component/Images/barbg.jpg"/>
        </Grid.Background>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="auto"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>
            <Image x:Name="preNav" Source="/CPPEI.Coolzon.Theme.Default;component/Images/ban-left.png" Margin="0,-2,0,2" MouseLeftButtonDown="preNav_MouseLeftButtonDown" Grid.Column="0"></Image>
            <ScrollViewer x:Name="scrollViewer" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" Grid.Column="1" CanContentScroll="False">
                <StackPanel x:Name="spNav" Orientation="Horizontal" Margin="5,0,5,0">
                    <StackPanel.Resources>
                        <Style TargetType="Label" x:Key="lblBase">
                            <Setter Property="HorizontalContentAlignment" Value="Center"></Setter>
                            <Setter Property="VerticalContentAlignment" Value="Center"></Setter>
                            <Setter Property="BorderThickness" Value="1,0" />
                            <Setter Property="Background">
                                <Setter.Value>
                                    <ImageBrush ImageSource="/CPPEI.Coolzon.Theme.Default;component/Images/textbg.png"/>
                                </Setter.Value>
                            </Setter>
                            <Setter Property="Foreground">
                                <Setter.Value>
                                    <SolidColorBrush Color="White"/>
                                </Setter.Value>
                            </Setter>
                        </Style>
                        <Style TargetType="Label" x:Key="lblPress" BasedOn="{StaticResource ResourceKey=lblBase}">
                            <Setter Property="Background">
                                <Setter.Value>
                                    <ImageBrush ImageSource="/CPPEI.Coolzon.Theme.Default;component/Images/selfset.png"/>
                                </Setter.Value>
                            </Setter>
                        </Style>
                    </StackPanel.Resources>

                </StackPanel>
            </ScrollViewer>
            <Image x:Name="nextNav" Source="/CPPEI.Coolzon.Theme.Default;component/Images/ban-right.png" Margin="0,-2,0,2" MouseLeftButtonDown="nextNav_MouseLeftButtonDown" Grid.Column="2"></Image>
        </Grid>
        <StackPanel x:Name="spLayout" Orientation="Horizontal" Grid.Column="1">
           <Label x:Name="lblResetScene" Width="90" HorizontalContentAlignment="Center"
                  VerticalContentAlignment="Center"
                   Foreground="White"
                  Content="重置场景" MouseLeftButtonDown="lblResetScene_MouseLeftButtonDown"/>
            <Label x:Name="lblResetSolution" Width="90" HorizontalContentAlignment="Center"
                  VerticalContentAlignment="Center"
                   Foreground="White"
                   Content="重置方案" MouseLeftButtonDown="lblResetSolution_MouseLeftButtonDown"/>
       </StackPanel>
    </Grid>
</UserControl>
